projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e540533
)
(internal_self_insert): Calculate column properly
author
Karl Heuer
<kwzh@gnu.org>
Mon, 1 Mar 1999 03:50:00 +0000
(
03:50
+0000)
committer
Karl Heuer
<kwzh@gnu.org>
Mon, 1 Mar 1999 03:50:00 +0000
(
03:50
+0000)
in overwrite-of-tab case.
src/cmds.c
patch
|
blob
|
history
diff --git
a/src/cmds.c
b/src/cmds.c
index c1f92c745f67f066e46d82c32c0cbaa5bffdde04..2273aa0300283cc0b3528d0c74f7e83373d1efaa 100644
(file)
--- a/
src/cmds.c
+++ b/
src/cmds.c
@@
-398,7
+398,7
@@
internal_self_insert (c, noautofill)
&& XINT (current_buffer->tab_width) > 0
&& XFASTINT (current_buffer->tab_width) < 20
&& (target_clm = (current_column ()
- + XINT (Fchar_width (make_number (c
2
)))),
+ + XINT (Fchar_width (make_number (c)))),
target_clm % XFASTINT (current_buffer->tab_width)))))
{
int pos = PT;